//-----------------------------------------------------------------------
// <copyright file="a_ReviewService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ReviewService
    {
        #region a_Review

        public static void Createa_Review(a_Review a_Review)
        {            
            try
            {
                a_ReviewDAO a_ReviewDAO = new a_ReviewDAO();
                a_ReviewDAO.Createa_Review(a_Review);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Review(a_Review a_Review)
        {            
            try
            {
                a_ReviewDAO a_ReviewDAO = new a_ReviewDAO();
                a_ReviewDAO.Updatea_Review(a_Review);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Review(int rid)
        {            
            try
            {
                a_ReviewDAO a_ReviewDAO = new a_ReviewDAO();
                a_ReviewDAO.Deletea_Review(rid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Review Geta_Review(int rid)
        {            
            try
            {
                a_ReviewDAO a_ReviewDAO = new a_ReviewDAO();
                return a_ReviewDAO.Geta_Review(rid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ReviewCollection Geta_ReviewList(a_ReviewColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ReviewDAO a_ReviewDAO = new a_ReviewDAO();
                return a_ReviewDAO.Geta_ReviewList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ReviewCollection Geta_ReviewList(a_ReviewColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ReviewDAO a_ReviewDAO = new a_ReviewDAO();
                return a_ReviewDAO.Geta_ReviewList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}